package vip.liux.backend.application.service.gen;

import lombok.Getter;
import lombok.Setter;
import vip.liux.backend.domain.models.gen.GenTable;

import java.io.Serializable;
import java.util.List;

/**
 * Dto for {@link GenTable}
 */
@Getter
@Setter
public class GenTableDto implements Serializable {
    private Long id;
    private String tableName;
    private String tableComment;
    private String className;
    private String packageName;
    private String moduleName;
    private List<GenTableColumnDto> columns;

    public GenTableDto(Long id, String tableName, String tableComment, String className, String packageName,
                       String moduleName, List<GenTableColumnDto> columns) {
        this.id = id;
        this.tableName = tableName;
        this.tableComment = tableComment;
        this.className = className;
        this.packageName = packageName;
        this.moduleName = moduleName;
        this.columns = columns;
    }
}